home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / util / misc / VMM_src.lha / VMM / MUI / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-16  |  4.6 KB  |  211 lines

  1. #include <exec/types.h>
  2. #include <exec/memory.h>
  3. #include <exec/execbase.h>
  4. #include <libraries/mui.h>
  5. #include <libraries/gadtools.h>
  6. #include <libraries/asl.h>
  7. #include <libraries/commodities.h>
  8. #include <libraries/locale.h>
  9. #include <dos/dos.h>
  10. #include <dos/dostags.h>
  11. #include <dos/filehandler.h>
  12. #include <clib/exec_protos.h>
  13. #include <clib/dos_protos.h>
  14. #include <clib/intuition_protos.h>
  15. #include <clib/muimaster_protos.h>
  16. #include <clib/utility_protos.h>
  17. #include <clib/commodities_protos.h>
  18. #include <clib/asl_protos.h>
  19. #include <clib/icon_protos.h>
  20. #include <clib/alib_protos.h>
  21. #include <pragmas/muimaster_pragmas.h>
  22. #include <libraries/mui.h>
  23. #include <stdio.h>
  24. #include <string.h>
  25. #ifdef __GNUC__
  26. #include "../shared_defs.h"
  27. #else
  28. #include "/shared_defs.h"
  29. #endif
  30. #include "protos.h"
  31. #include "cat/VMM_Cat.h"
  32.  
  33. struct TaskEntry
  34.   {
  35.   struct MinNode te_Node;
  36.   char *te_TaskName;
  37.   struct TaskEntryInFile te_teif;
  38.   };
  39.  
  40. GLOBAL Object *Application,
  41.               *DiskList,
  42.               *WI_Window,
  43.               *WI_TaskSelect,
  44.               *LV_TaskSelect,
  45.               *BT_Save,
  46.               *BT_Use,
  47.               *BT_Cancel;
  48.  
  49.  
  50. /* Objects in the memory page */
  51. GLOBAL Object *GR_Memory,
  52.               *GR_File,
  53.               *GR_DevName,
  54.               *ST_PartName,
  55.               *ST_FileName,
  56.               *PO_Disks,
  57.               *LV_Disks,
  58.               *CY_Policy,
  59.               *CY_Device,
  60.               *CY_MemFlags,
  61.               *TX_MinMem,
  62.               *SL_MinMem,
  63.               *TX_MaxMem,
  64.               *SL_MaxMem,
  65.               *TX_FileSize,
  66.               *SL_FileSize,
  67.               *TX_Buffer,
  68.               *SL_Buffer,
  69.               *TX_Prio,
  70.               *SL_Prio;
  71.  
  72. /* Objects in the task page */
  73. GLOBAL Object *LV_TaskList,
  74.               *ST_CurrentTask,
  75.               *GR_OrderButtons,
  76.               *GR_TaskButtons,
  77.               *GR_TaskList,
  78.               *GR_TaskSub,
  79.               *GR_Tasks,
  80.               *GR_VMPermissions,
  81.               *CY_DataOptions,
  82.               *CY_CodeOptions,
  83.               *ST_MinPublic,
  84.               *ST_MinNonPublic,
  85.               *BT_AddProg,
  86.               *BT_Top,
  87.               *BT_AddTask,
  88.               *BT_AddDir,
  89.               *BT_Up,
  90.               *BT_Add,
  91.               *BT_Down,
  92.               *BT_Delete,
  93.               *BT_Bottom,
  94.               *BT_Sort;
  95.  
  96. /* Objects in the misc page */
  97. GLOBAL Object *GR_Misc;
  98. GLOBAL Object *GR_StatParams,
  99.               *GR_Statistics,
  100.               *CM_StatEnabled,
  101.               *CM_Zoomed,
  102.               *ST_UnZTop,
  103.               *ST_UnZLeft,
  104.               *ST_ZTop,
  105.               *ST_ZLeft,
  106.               *CM_CacheZ2RAM,
  107.               *CM_WBPatch,
  108.               *CM_MemTracking,
  109.               *CM_FastROM,
  110.               *ST_MinVMAlloc,
  111.               *ST_EnableHotkey,
  112.               *ST_DisableHotkey;
  113.  
  114. GLOBAL struct Window *VMMWindow;
  115.  
  116. #ifdef DO_INIT
  117. GLOBAL struct Library *MUIMasterBase = NULL;
  118. GLOBAL struct Library *UtilityBase = NULL;
  119. GLOBAL struct Library *IconBase = NULL;
  120. GLOBAL struct Library *CxBase = NULL;
  121. GLOBAL struct Library *AslBase = NULL;
  122. GLOBAL struct Library *LocaleBase = NULL;
  123. GLOBAL struct Library *IntuitionBase = NULL;
  124. #else
  125. GLOBAL struct Library *MUIMasterBase;
  126. GLOBAL struct Library *UtilityBase;
  127. GLOBAL struct Library *IconBase;
  128. GLOBAL struct Library *CxBase;
  129. GLOBAL struct Library *AslBase;
  130. GLOBAL struct Library *LocaleBase;
  131. GLOBAL struct Library *IntuitionBase;
  132. #endif
  133.  
  134. extern struct ExecBase *SysBase;
  135.  
  136. enum
  137.   {
  138.   /* Termination buttons */
  139.   SAVE_ID = 1,
  140.   USE_ID,
  141.   CANCEL_ID,
  142.  
  143.   /* Menu choices */
  144.   OPEN_ID,
  145.   SAVE_AS_ID,
  146.   SAVE_WIN_ID,
  147.   ABOUT_ID,
  148.   HIDE_ID,
  149.   RESET_ID,
  150.   LAST_SAVED_ID,
  151.   RESTORE_ID,
  152.  
  153.   /* Other buttons */
  154.   POP_ID,
  155.   ADDPROG_ID,
  156.   ADDTASK_ID,
  157.   ADD_ID,
  158.   ADDDIR_ID,
  159.   DELETE_ID,
  160.   TOP_ID,
  161.   UP_ID,
  162.   DOWN_ID,
  163.   BOTTOM_ID,
  164.   SORT_ID,
  165.  
  166.   /* Cycle and string gadgets for task params */
  167.   CODE_PG_ID,
  168.   DATA_PG_ID,
  169.   MINPUBLIC_ID,
  170.   MINNONPUBLIC_ID,
  171.   TASKNAME_ID,
  172.  
  173.   MEMFLAGS_ID
  174.   };
  175.  
  176. #define FIRST_MENU_ID OPEN_ID
  177. #define LAST_MENU_ID  RESTORE_ID
  178.  
  179. /* MemType defines */
  180. #define MT_FIXED      0
  181. #define MT_DYNAMIC    1
  182. #define MT_RESTRICTED 2
  183.  
  184. /* MemFlags defines */
  185. #define MF_ANY  0
  186. #define MF_CHIP 1
  187. #define MF_FAST 2
  188.  
  189. /* Quit codes */
  190. #define Q_DONTQUIT 0
  191. #define Q_QUITGUI  1
  192. #define Q_QUITBOTH 2
  193.  
  194. #define CFG_NAME_SAVE ("ENVARC:" CFG_FILEBASE)
  195. #define CFG_NAME_USE  ("ENV:" CFG_FILEBASE)
  196.  
  197. GLOBAL BOOL ShowGUI;
  198. GLOBAL BOOL ForceOverwrite;
  199. GLOBAL UWORD CXPri;
  200. GLOBAL char *CXPopKey;
  201. GLOBAL char *CfgName;
  202. GLOBAL char  EnableVMHotkey [200];
  203. GLOBAL char  DisableVMHotkey [200];
  204.  
  205. GLOBAL struct CxParams *CxParams;
  206. GLOBAL struct ExtPort *ExtCxPort;
  207.  
  208. #define DEFAULT_POPKEY     "ralt rshift v"
  209.  
  210. #define VMM_RUNNING (FindPort (VMPORTNAME) != NULL)
  211.